package com.tanhua.server.exception;

import com.tanhua.model.vo.ErrorResult;
import lombok.Data;


/**
 * @program: tanhua
 * @description:
 * @author: MR.peng
 * @create: 2022-03-09 22:18
 **/

@Data
public class BusinessException extends RuntimeException {
    private ErrorResult vo ;

    //构造方法
    public BusinessException(ErrorResult vo){
        super(vo.getErrMessage());
        this.vo = vo;
    }
}
